from django.db import models


class User(models.Model):
    UNDEFINED = 0
    MALE = 1
    FEMALE = 2
    SEX_CHOICES = [
        (UNDEFINED, 'Undefined'),
        (MALE, 'Male'),
        (FEMALE, 'Female'),
    ]

    id = models.AutoField(primary_key=True)
    account = models.CharField(max_length=32, null=False, default="Unknown")
    password = models.CharField(max_length=32, null=False, default="Unknown")
    email = models.CharField(max_length=32, null=False, default="Unknown")
    phone_number = models.CharField(max_length=32, default="Unknown")
    sex = models.IntegerField(choices=SEX_CHOICES, default=UNDEFINED)
